package java67_7;

public class GetMax {

	public static void main(String[] args) {
		int[] money = { 8, 4, 2, 1, 23, 34, 21 };
		int max = money[0];
		for (int j = 1; j < money.length; j++) {
			if (max < money[j]) {
				max = money[j];
			}
		}
		System.out.println("最大的是:" + max);
	}

}
